package top.wilbert.collegelink.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.wilbert.collegelink.common.utils.PageUtils;
import top.wilbert.collegelink.common.utils.Query;

import top.wilbert.collegelink.user.dao.DynamicDao;
import top.wilbert.collegelink.user.entity.DynamicEntity;
import top.wilbert.collegelink.user.service.DynamicService;


@Service("dynamicService")
public class DynamicServiceImpl extends ServiceImpl<DynamicDao, DynamicEntity> implements DynamicService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DynamicEntity> page = this.page(
                new Query<DynamicEntity>().getPage(params),
                new QueryWrapper<DynamicEntity>()
        );

        return new PageUtils(page);
    }

}